package com.ljh.localmusic.data.repository

import com.ljh.localmusic.data.local.ContentResolverHelper
import com.ljh.localmusic.data.local.models.AudioItem
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import javax.inject.Inject

/**
 * author：LJH on 2025/8/15 16:32
 *
 */
class MusicRepository @Inject constructor(
    private val contextResolverHelper: ContentResolverHelper
) {

    suspend fun getMusics(): List<AudioItem> = withContext(Dispatchers.IO){
        contextResolverHelper.getAudioData()
    }
}